package com.era.entity;

import java.sql.Timestamp;

/**
 * NewsInfo entity. @author MyEclipse Persistence Tools
 */

public class NewsInfo implements java.io.Serializable {

	// Fields

	private Integer newsId;
	private String title;
	private Timestamp comTime;
	private String source;
	private String imgSrc;
	private String des;
	private String keyWords;
	private Integer classId;
	private String mainText;
	private String candidator;
	private String copyRight;
	private Integer viewRate;

	// Constructors

	/** default constructor */
	public NewsInfo() {
	}

	/** full constructor */
	public NewsInfo(String title, Timestamp comTime, String source,
			String imgSrc, String des, String keyWords, Integer classId,
			String mainText, String candidator, String copyRight,
			Integer viewRate) {
		this.title = title;
		this.comTime = comTime;
		this.source = source;
		this.imgSrc = imgSrc;
		this.des = des;
		this.keyWords = keyWords;
		this.classId = classId;
		this.mainText = mainText;
		this.candidator = candidator;
		this.copyRight = copyRight;
		this.viewRate = viewRate;
	}

	// Property accessors

	public Integer getNewsId() {
		return this.newsId;
	}

	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Timestamp getComTime() {
		return this.comTime;
	}

	public void setComTime(Timestamp comTime) {
		this.comTime = comTime;
	}

	public String getSource() {
		return this.source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getImgSrc() {
		return this.imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}

	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public String getKeyWords() {
		return this.keyWords;
	}

	public void setKeyWords(String keyWords) {
		this.keyWords = keyWords;
	}

	public Integer getClassId() {
		return this.classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public String getMainText() {
		return this.mainText;
	}

	public void setMainText(String mainText) {
		this.mainText = mainText;
	}

	public String getCandidator() {
		return this.candidator;
	}

	public void setCandidator(String candidator) {
		this.candidator = candidator;
	}

	public String getCopyRight() {
		return this.copyRight;
	}

	public void setCopyRight(String copyRight) {
		this.copyRight = copyRight;
	}

	public Integer getViewRate() {
		return this.viewRate;
	}

	public void setViewRate(Integer viewRate) {
		this.viewRate = viewRate;
	}

}